package com.piece.core.web.interceptor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;

/**
 * 拦截类钩子支持类
 */
public abstract class InterceptorHookSupport implements InterceptorHook {

    @Lazy
    @Autowired
    protected InterceptorHookManager interceptorHookManager;

    //@PreDestroy
    public void destroy() {
        interceptorHookManager.removeInterceptorHook(this);
    }
}
